#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include <QPalette>
#include <QLineEdit>
#include <QTextEdit>
#include <QCheckBox>
#include <QMessageBox>
#include <QToolTip>
#include <QHBoxLayout>
#include <QVBoxLayout>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots: // 槽函数
    void onloginButton();
    void onRegisterButton();

    void usernameTextChanged();
    void passwordTextChanged();

    void usernameEditEnter();
    void passwordEditEnter();

signals:
    void testSignal(QString str);

private:
    Ui::MainWindow *ui;
    QPushButton *loginBut;
    QPushButton *registerBut;
    QLineEdit *usernameEdit;
    QLineEdit *passwordEdit;
    QCheckBox *autoLoginBox;
    QCheckBox *rememberBox;

};
#endif // MAINWINDOW_H
